package org.wzy.springcloud.feign;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.wzy.springcloud.feign.api.service.PersonService;

/**
 * PersonClient 应用
 * <p>
 * {@link EnableFeignClients} List of classes annotated with @FeignClient. If not empty, disables classpath scanning.
 *
 * @author wzy_h
 * @version 1.0
 * @date 23:00 2017/11/20
 */
@SpringBootApplication
@EnableFeignClients(clients = PersonService.class)
@EnableDiscoveryClient
@EnableCircuitBreaker
public class PersonClientApplication {

    public static void main(String[] args) {
        SpringApplication.run(PersonClientApplication.class, args);
    }

}
